from marshmallow import Schema, fields
from marshmallow.validate import OneOf


class TokenFromArg(Schema):
    username = fields.Email(required=True, error_messages={"invalid": "请输入有效的邮箱地址"})
    password = fields.Str(required=True)
